//
//  UIPickerView+LVPickerView.m
//  TravelWithPetApp
//
//  Created by 吕亚斌 on 2018/4/10.
//  Copyright © 2018 - 2019 吕亚斌. All rights reserved.
//

#import "UIPickerView+LVPickerView.h"
#import "Macros.h"
@implementation UIPickerView (LVPickerView)
- (void)clearSpearatorLine{
    [self setSpearatorLine:[UIColor clearColor]];
}
- (void)setSpearatorLine:(UIColor *)lineColor{
    [self.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        
        if (obj.frame.size.height < 1)
        {
            [obj setBackgroundColor:lineColor];
        }
    }];
}
- (void)setDefaultsSpearatorLine{
//    [self setSpearatorLine:[UIColor colorWithHexString:@"#FF980D"]];
    [self setSpearatorLine:HEXCOLOR(0xFF980D)];
}
@end
